cmake_minimum_required(VERSION 3.8)
project(target_prop_get)

add_executable(hello hello.cpp)

#define_property(TARGET PROPERTY target_prop BRIEF_DOCS "bd" FULL_DOCS "fd")
#set_property(TARGET hello APPEND PROPERTY target_prop "target prop value")
set_target_properties(hello PROPERTIES target_prop "new value")

get_property(var1 TARGET hello PROPERTY target_prop DEFINED)
message(STATUS "target_prop is defined? = ${var1}")
get_property(var2 TARGET hello PROPERTY target_prop SET)
message(STATUS "target_prop is set? = ${var2}")
get_property(var3 TARGET hello PROPERTY target_prop BRIEF_DOCS)
message(STATUS "target_prop is brief docs? = ${var3}")
get_property(var4 TARGET hello PROPERTY target_prop FULL_DOCS)
message(STATUS "target_prop is full docs? = ${var4}")
get_property(var5 TARGET hello PROPERTY target_prop)
message(STATUS "target_prop = ${var5}")

get_target_property(var6 hello target_prop)
message(STATUS "target_prop = ${var6}")
